/*
 * @Date: 2023-03-09 21:37:34
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-10 20:30:07
 * @FilePath: \A19\backend\src\shared\protocols\Create\PtlCreateUserHomework.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { studentAnswer } from "../../types/Answer";

export interface ReqCreateUserHomework extends BaseRequest {
    examOrHomework:'exam' | 'homework',
    test:ObjectId
    submitTime:Date
    answers:Array<studentAnswer>
    status?:'saved' | 'commited'
    score:number
}

export interface ResCreateUserHomework extends BaseResponse {
    
}

export const conf: BaseConf = {
    needLogin: true
}